-- GENERATED SPELL FOR [Onslaught Executioner] --


function spell0_27211(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(9080,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27211', 10270, 1)
end

function spell1_27211(pUnit, Event) --@Mighty Blow,n/a--
pUnit:FullCastSpellOnTarget(43673,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27211', 0, 1)
end

function Sorts_27211(pUnit, Event)
local choix_sorts_27211 = math.random(0, 1)
if choix_sorts_27211 == 0 then
pUnit:RegisterEvent('spell0_27211', 1, 1)
end
if choix_sorts_27211 == 1 then
pUnit:RegisterEvent('spell1_27211', 1, 1)
end
end

function mob27211_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27211', math.random(1500, 3000), 1)
end

function mob27211_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27211_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27211_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27211, 1, 'mob27211_Action')
RegisterUnitEvent(27211, 2, 'mob27211_Leave')
RegisterUnitEvent(27211, 3, 'mob27211_Kill')
RegisterUnitEvent(27211, 4, 'mob27211_Die')
